//
//  Global.h
//  GKBHouse
//
//  Created by  on 12-8-11.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#ifndef GKBHouse_Global_h
#define GKBHouse_Global_h
#import <QuartzCore/QuartzCore.h>
#import "OperationTip.h"
#import "MenuController.h"
#import "AppFile.h"
#import "ExFrame.h"
#import "HouseButton.h"
#import "DeviceView.h"
#import "RoomView.h"
#import "GKBMainController.h"
#import "GKBNavigationBar.h"
#import "LoginController1.h"
#import "WebServices.h"
#import "SystemSettting.h"
#import "SceneSetting.h"

#define IOS7_OR_LATER  ( [[[UIDevice currentDevice] systemVersion] compare:@"7.0"] != NSOrderedAscending )

#define kScreenHeight [[UIScreen mainScreen] bounds].size.height
#define kScreenWidth [[UIScreen mainScreen] bounds].size.width

#define DEVICE_HEIGHT MAX(kScreenHeight, kScreenWidth)

#define DEVICE_WIDTH MIN(kScreenHeight, kScreenWidth)
//屏幕适配比例
#define ScreenScale [UIScreen mainScreen].bounds.size.width / 320.0
#define DEVICE_IS_4INCHES ([[UIScreen mainScreen] bounds].size.height == 568)

#endif
